package com.ian.annotation;

import org.springframework.security.access.prepost.PreAuthorize;

import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;

/**
 * meta annotation for @PreAuthorize("#contact.name == authentication.name")
 * @author Witt
 * @version 1.0.0
 * @date 2022/5/4
 */
@Retention(RetentionPolicy.RUNTIME)
@PreAuthorize("#contact.name == authentication.name")
public @interface ContactPermission {
}
